TPS UPS V3.0 Communication Driver

 

TPS UPS V3.0 is driver to communicate with UPS controller developed in Korea.

 

1. Read settings

 

<Figure 1> is read setting example of TPS UPS V3.0 communication driver.

<Figure 1> Read setting example of TPS UPS V3.0 driver

Device Setting of <Figure 1> are input, Com Port(COM1), Com Baud(4800), Parity Bit(0), Data Bit(8), Stop Bit(1).

TPS UPS device settings are fixed as 4800, 0, 8, 1.

 

TPS UPS V3.0 driver's read schedule

Read schedule setting parameters are as follows :

1) STATION – Don't care. ( Fixed to 0 )

2) Read Command – One of I, D, H and C. ( Refer to <Table 1>)

3) Read Start Address – Don't care. ( Fixed to 0 )

4) Save Start Address for Communication Server - Saving start address of Communication Server.

5) Read Size – Set as 1. (Read size is fixed by each command, refer to <Table 1> )

 

Read schedule example)

READ,     0,    D,     0,    0,   1,

READ,     0,    I,      0,   50,   1,

 

<Table 1> is description of read commands type and contents of TPS UPS V3.0 communication driver.

Command Contents

Save Address

Remarks
I Read of Information

Start Addr + 0 : Rated current(Real value = Read value / 8),

Start Addr + 1 ~ 6 : Current time of Year, Month, Day, Hour, Minute, Second

 Serial Number values (all read commands) are saved at save address of string memory + 0.
D Read of Data

Start Addr + 0 ~ 24 : Analog current value(Refer to <Table 2>),

Start Addr + 25 ~ 29 : Digital current value(Refer to <Table 3>),

Start Addr + 30 : Frequency(Real value = Read value / 10)

H Read of History

Start Addr + 0 : Max Record,

Start Addr + 1 ~ : History value(Max Record * 10)

C Read of Callback

Start Addr + 0 : Enable status,

Start Addr + 1 ~ 16 : Phone number

<Table 1> Read commands type and save address of TPS UPS V3.0 communication driver
Save Address Contents Remarks
Start Addr + 0 Vin RS Current value = Read value / 8

12 Bit Data( 0 ~ 4095 )
Start Addr + 1 Vin ST
Start Addr + 2 Vin TR
Start Addr + 3 Vin R
Start Addr + 4 Vin S
Start Addr + 5 Vin T
Start Addr + 6 Vout RS
Start Addr + 7 Vout ST
Start Addr + 8 Vout TR
Start Addr + 9 Vout R
Start Addr + 10 Vout S
Start Addr + 11 Vout T
Start Addr + 12 Vbyp RS
Start Addr + 13 Vbyp ST
Start Addr + 14 Vbyp TR
Start Addr + 15 Vbyp R
Start Addr + 16 Vbyp S
Start Addr + 17 Vbyp T
Start Addr + 18 Vinv RS
Start Addr + 19 Vinv ST
Start Addr + 20 Vinv TR
Start Addr + 21 Vdc
Start Addr + 22 Adc TOTAL
Start Addr + 23 Adc CHARGE
Start Addr + 24 Temperature Current value = Read value * 100 / 4096
<Table 2> Meaning of storage order by analog current value

Save Address

Contents

Save Addr + 0

Bit 0 : REC On <S>,

Bit 1 : REC Off <S>,

Bit 2 : REC Equalize Oper <S>,

Bit 3 : REC Float Oper <S>,

Bit 4 : Bypass Feeding <S>,

Bit 5 : Inv Feeding <S>,

Bit 6 : Inv On <S>,

Bit 7 : Inv Off <S, A>

Save Addr + 1

Bit 0 : Sync to Utility <S, A>,

Bit 1 : AC Input UV <A>,

Bit 2 : AC Input OV <A>,

Bit 3 : Over Load <A>,

Bit 4 : DC Ground <A>,

Bit 5 : BAT Discharge <A>,

Bit 6 : REC Over Temp <A>,

Bit 7 : REC Fuse Fail <A>

Save Addr + 2

Bit 0 : REC Fan Fail <A>,

Bit 1 : Inv Fan Fail <A>,

Bit 2 : Bypass OV <A>,

Bit 3 : Bypass UV <A>,

Bit 4 : Bypass Freq Fail <A>,

Bit 5 : Bypass Over Temp <A>,

Bit 6 : Bypass Fan Fail <A>,

Bit 7 : Bypass Fuse Fail <A>

Save Addr + 3

Bit 0 : Bypass Phase Error <A>,

Bit 1 : DC UV <A, T>,

Bit 2 : DC OV <A, T>,

Bit 3 : DC OC <A, T>,

Bit 4 : Inv Output UV <A, T>,

Bit 5 : Inv Output OV <A, T>,

Bit 6 : Inv Fuse Fail <A, T>,

Bit 7 : Inv Over Temp <A, T>

Save Addr + 4

Bit 0 : AC Input Phase error <A>

<Table 3> Meaning of storage order by digital current value

If you click the icon  in protocol option part, you can see the dialog box such as <Figure 2>. You can also set read schedule by using this part.

<Figure 2> Example of TPS UPS V3.0 communication driver's Option dialog box

You can set read schedule by using , ,  button and listbox of <Figure 2>.

<Figure 3> Example of TPS UPS V3.0 communication driver's read schedule Add/Edit dialog box

When you click Add button or Edit button in dialog box of <Figure 2>, dialog box of <Figure 3> is shown.

 

2. Write settings

You can set current time of TPS UPS device, Serial Number, etc or ON/OFF the power by using writing settings.

 

Digital Write

Digital write and analog write have the same setting parameters except output value(0 or 1). 

 

Analog Write

Analog write setting parameters are as follows:

1) Port             Connected Port no.(Not COM number)

2) Station         Don't care. (Fixed to 0)

3) Address      Don't care. (Fixed to 0)

4) Extra1          One of T, S, A, C, CP, CF, CM, CD and CB. (Refer to <Table 4>)

5) Extra2          When Extra1 is A : Enter Charge Current value.

 

<Table 4> is output parameter value and contents of write command which are used at TPS UPS V3.0 communication driver, and <Table 5> is description for input method of character when use extended input of TPS UPS V3.0 communication driver's Extra1.

Command(Extra1)

Contents

Extra2 Output value Extra1 Extended Input
T

Set of Current time

(Send current time of computer)

- -
S

Set of Serial Number

Set of Serial Number(Refer to <Table 5>)
A

Set of Max Current

Charge Current Max Current -
C

Set of Callback

- Set of Callback Enable,Phone Number(Refer to <Table 5>)
CP

Power On

-
CF

Power Off

CM

Manual Transfer

CD

Disconnect

CB

Buzzer Reset

<Table 4> Output parameters and contents of write command which are used at TPS UPS V3.0 communication driver
Characters Description Remarks
\x?? Enter the text for the various control characters,
?? : Enter the hexadecimal between 00 to FF

Enter the '.'(Point) always next to command.

 

Input exampe 1) S.SYS-305111101

(Set Serial Number as SYS-305111101)

Input exampe 2) C.\x010123456789012345

(Callback Enable = 1(\x01),

Phone Number = Set as 0123456789012345)

\n LF character (0A, identify with \x0A)
\r CR character (0D, identify with \x0D)
\t TAB character (09, identify with \x09)
Number(0 ~ 9),
English(a ~ z, A ~ Z),
Korean, Special characters, etc
Enter the relevant character
<Table 5> Input method of character when use TPS UPS V3.0 communication driver's Extra1 extended input

Write example 1)

PORT : 0   STATION : 0   ADDRESS : 0000  EXTRA1 : T  EXTRA2 : Blank

The setting parameter shown above is example of analog write for setting current time of TPS UPS device connected with no.0 port as current time of computer.

 

Write example 2)

PORT : 0   STATION : 0   ADDRESS : 0000  EXTRA1 : S.SYS-305111101  EXTRA2 : Blank

The setting parameter shown above is example of analog write for changing Serial Number of TPS UPS device connected with no.0 port as SYS-305111101.

 

Write example 3)

PORT : 0   STATION : 0   ADDRESS : 0000  EXTRA1 : A  EXTRA2 : 10

The setting parameter shown above is example of analog write(as 100) for setting Charge Current = 10, Max Current = 100(not real value) of TPS UPS device connected with no.0 port.

 

Write example 4)

PORT : 0   STATION : 0   ADDRESS : 0000  EXTRA1 : C.\x010123456789012345  EXTRA2 : Blank

The setting parameter shown above is example of analog write for changing Callback Enable = 1(\x01) of TPS UPS device connected with no.0 port as Phone Number = 0123456789012345.

 

Write example 5)

PORT : 0   STATION : 0   ADDRESS : 0000  EXTRA1 : CP  EXTRA2 : Blank

The setting parameter shown above is example of analog write for Power On the TPS UPS device connected with no.0 port.

 

Write example 6)

PORT : 0   STATION : 0   ADDRESS : 0000  EXTRA1 : CF  EXTRA2 : Blank

The setting parameter shown above is example of analog write for Power Off the TPS UPS device connected with no.0 port.

 

Write example 7)

PORT : 0   STATION : 0   ADDRESS : 0000  EXTRA1 : CM  EXTRA2 : Blank

The setting parameter shown above is example to Manual Transfer the TPS UPS device connected with no.0 port.

 

Write example 8)

PORT : 0   STATION : 0   ADDRESS : 0000  EXTRA1 : CD  EXTRA2 : Blank

The setting parameter shown above is example to Disconnect TPS UPS device connected with no.0 port.

 

Write example 9)

PORT : 0   STATION : 0   ADDRESS : 0000  EXTRA1 : CB  EXTRA2 : Blank

The setting parameter shown above is example to Buzzer Reset the TPS UPS device connected with no.0 port.

 

3. Communication cable and power connection

Connect communication cable of TPS UPS device with basic power.

 

Communication cable connection

Connect general series RS-232C communication cable to P1 terminal of <Figure 4>.

<Figure 4> Example of connecting basic power and communication cable to TPS UPS device

Basic power connection

Connect DC -12V, +12V, +5V, etc of power to POWER terminal of <Figure 4>.